package com.zmj.sy.mom.srv.aps.bean.entity.base;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OldBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId( type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;
    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    @TableField( fill = FieldFill.INSERT)
    private java.lang.String createBy;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField( fill = FieldFill.INSERT)
    private java.util.Date createTime;
    /** 更新人 */
    @ApiModelProperty(value = "更新人")
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private java.lang.String updateBy;
    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private java.util.Date updateTime;
    /**
     * 删除状态（0，正常，1已删除）
     */
    @ApiModelProperty(value = "删除状态")
    @TableLogic(value = "0", delval = "1")
    @TableField( fill = FieldFill.INSERT)
    private Integer delFlag;

}
